<template>
  <div class="digui">
    {{ num }}
    <zbc :num="num - 1" v-if="num > 0" />
  </div>
</template>

<script>
export default {
  name: "zbc",
  props: ["num"],
};
</script>

<style lang="less" scoped>
.digui {
  border: 5px solid pink;
}
</style>